from sentence_transformers import SentenceTransformer
# pip install sentence-transformers


class Transform:
    def __init__(self):
        self._model = SentenceTransformer('all-MiniLM-L6-v2')
    def transform(self, content):
        embedding = self._model.encode(content, normalize_embeddings=True)
        return embedding.tolist()
